<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <ul>
        <li>翔太郎</li>
    </ul>
</body>
</html>
<script>
    //创建节点
    var li=document.createElement('li')
    //赋值
    li.innerHTML='菲利普'
    //添加节点
    var ul=document.querySelector('ul')
    ul.appendChild(li)
</script>